<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Myphplib {
	function myheadlinks()
	{
		echo '<font color="red">';
		echo '<table>';
		echo '<tr>';
		echo '<td><h3><a href='.base_url().'index.php/zy>主页</a></h2>';
		echo '<td><h3><a href='.base_url().'index.php/zy_addcase>添加病例</a></h2>';
		echo '<td><h3><a href='.base_url().'index.php/zy_caselist/index/0>病例汇总</a></h2>';
		echo '<td><h3><a href='.base_url().'index.php/zy/search>查询病例</a></h2>';
		echo '<td><h3><a href='.base_url().'index.php/zy/export>导出病例</a></h2>';
		echo '<td><h3><a href='.base_url().'index.php/zy/manageprescribe>处方管理</a></h2>';
		echo '</tr>';
		echo '</table>' ;
		echo '</font>';
	}
	
	function trim_space($str)
	{
		//return preg_replace('/\s+$/', '', preg_replace('/^\s+/', '', $str));
		return preg_replace('/[(\xc2\xa0)|\s]+$/u', '', preg_replace('/^[(\xc2\xa0)|\s]+/u', '', $str));
	}
}